package com.tianji.remark.service;

import com.tianji.remark.domain.dto.LikeRecordFormDTO;
import com.tianji.remark.domain.po.LikedRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 点赞记录表 服务类
 * </p>
 *
 * @author whx
 * @since 2025-01-03
 */
public interface ILikedRecordService extends IService<LikedRecord> {

    /**
     * 点赞/取消点赞
     * @param dto
     */
    void like(LikeRecordFormDTO dto);

    /**
     * 已点赞业务id集合
     * @param bizIds
     * @return
     */
    List<Long> likedBizList(List<Long> bizIds);


    void readLikedTimesAndSendMessage(String bizType, int maxBizSize);
}
